feat(api): update API spec from langfuse/langfuse fa2979b#1403
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Important
Add
queue_idfield to multiple classes to reference annotation queues, updating docstrings for clarity.queue_idfield toScoreBodyandCreateScoreRequestclasses, referencing an annotation queue.queue_iddocstring inBaseScoreandBaseScoreV1to clarify its purpose.queue_idis optional and uses aliasqueueIdin all classes.base_score.py,base_score_v_1.py,score_body.py, andcreate_score_request.py.This description was created by
for 46e409f. You can customize this summary. It will automatically update as commits are pushed.
Disclaimer: Experimental PR review
Greptile Overview
Updated On: 2025-10-13 08:33:47 UTC
Summary
This PR updates the auto-generated API client to add support for annotation queue tracking on scores. The changes add an optional
queue_idfield to score creation and response types.Key changes:
queue_idfield toScoreBodyandCreateScoreRequesttypes to support annotation queue referencesqueue_idfield inBaseScoreandBaseScoreV1for improved clarityNoneTechnical details:
queueId→queue_id)Confidence Score: 5/5
Important Files Changed
File Analysis
queue_idfield to support annotation queue trackingqueue_idfield to support annotation queue trackingSequence Diagram
sequenceDiagram participant User participant Client as Langfuse Client participant ScoreBody participant API as Langfuse API participant Queue as Annotation Queue User->>Client: create_score(name, value, ...) Client->>Client: Generate score_id Client->>ScoreBody: Create ScoreBody instance Note over ScoreBody: New optional field:<br/>queue_id (queueId) ScoreBody->>ScoreBody: Validate fields Client->>Client: Create score-create event Client->>API: Send score via ingestion endpoint alt Score has queue_id API->>Queue: Associate score with annotation queue Queue-->>API: Confirmation end API-->>Client: Score created successfully Client-->>User: Score created